package com.decent.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.decent.dao.ImageMapper;
import com.decent.entity.Banner;
import com.decent.entity.Image;
import com.decent.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author decent
 * @Create 2021/4/7 - 15:56
 * @Description
 */
@Service
public class BannerServiceImpl implements BannerService {

    @Resource
    private ImageMapper imageMapper;

    /**
     * 获得banner图
     * @return
     */
    @Override
    public List<Banner> listBanner() {
        return imageMapper.selectBannerList();
    }
}
